package org.speed.netty.server.netty.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpMessage;

public class AuthHandler extends SimpleChannelInboundHandler<HttpMessage> {

	@Override
	protected void channelRead0(ChannelHandlerContext ctx, HttpMessage msg) throws Exception {
		
		FullHttpRequest req = (FullHttpRequest) msg;
		String url = req.getUri();
		System.out.println(url + ",当前设备验证通过.....");
		
		ctx.pipeline().remove(this);
	}

}
